<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<title>添加产品类别</title>
<link rel="stylesheet" type="text/css" href="${base}/css/admin/global.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/admin/mainframe.css" />
<script src="${base}/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
	
	function checkForm(){
	  	
	  	if($.trim($("#typeName").val()) == ""){
	  		alert("请填写类别名称!");
	  		return false;
	  	}
	  	return true;
	  }
	  
	  function saveForm(type){
	  	if(!checkForm()){
	  		return false;
	  	}
	  	
	  	$("#form1").submit();
	  }
</script>
</head>
<body>

<DIV class="mbody">
    <div class="tagLine"><a href="${base}/admin/main.do" target="_self" >桌面</a> » 产品管理 » 添加产品类别 </div>
  <div class="cbody">
        <div class="opeArea">
            <div class="wbox">
            <h5 class="titnav">基本信息</h5>
            <div class="inbox">
			<form action="${base}/admin/prod/type/save.do" id="form1" method="post">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="infotable">
	                <tr>
	                	<td class="titletd">类别名称</td>
	                	<td class="infotd">
	                		<input type="text" class="txts infotext" name="prodType.typeName" id="typeName" />
	                		<span class="import">*</span>
	                	</td>
	                	<td class="titletd">所属语种</td>
	                	<td class="infotd">
	                		<select name="prodType.language">
	                			<#if languages?? && languages?size gt 0>
	                				<#list languages?keys as key>
	                					<option value="${key}">${languages[key]}</option>
	                				</#list>
	                			</#if>
	                		</select>
	                	</td>
	                </tr>
			     </table>
			     <div class="bottomSaveline">
        			<button type="submit" class="sysSaveBtn" onclick="return saveForm()"><b class="icon icon_savetolist"></b>保存</button>
    			</div>
			</form>
	     </div>
    </div>
</DIV>
</body>
</html>
